<?=isset($header) ? $header : ''?>
<div id="content">
	<div class="form_style">
		<!-- nav1 start-->
			<table>
				<thead>
					<tr>
						<th>時間</th>
						<th>手機號</th>
						<th>內容</th>
						<th>状态</th>
					</tr>
				</thead>
				<tbody id="page_content">
					<?
					foreach($result as $key=>$val){
					?>
					<tr>
						<td><?=date("Y/m/d H:i:s",$val->ctime)?></td>
						<td><?=$val->to?></td>
						<td><?=$val->content?></td>
						<td><?=$val->status?></td>
					</tr>
					<?
					}
					?>					
				</tbody>
				<tfoot>
				<tr>
					<td colspan="12">
					<div>
						<div style="float:left">
							<!--<input type="checkbox" name="select_client" id="select_client" onclick="selectCheckBox()" >&nbsp;全选&nbsp;&nbsp;<input type="submit" onclick="checkform()" value="批量刪除">&nbsp;-->
						</div>
						<div style="float:right">
							 <div class="pager fl"> <span class="nav"> <a title="first page" class="first" href="#" onclick='pagination_home()'><span>First</span></a> <a title="previous page" class="previous" href="#" onclick='pagination_previous()'><span>Previous</span></a> </span><input type="hidden" id="pagination_query_condition" name="pagination_query_condition" value="<?=$query_condition?>">
							<input type="hidden" id="pagination_sequence" name="pagination_sequence" value="<?=$sequence?>"><span class="pages"> 第
                        <input id="pagination_pages" class="post" type="text" value="1" name="pagination_pages" style="width:20px;">
                        /<?=$page['num_pages']?> </span> <input type="hidden" id="pagination_num_pages" name="pagination_num_pages" value="<?=$page['num_pages']?>">
							<input type="hidden" id="pagination_url" name="pagination_url" value="<?=$page['url']?>"><span class="nav"> <a title="next page" class="next" href="#" onclick='pagination_next()'><span>Next</span></a> <a title="last page" class="last" href="#" onclick='pagination_last()'><span>Last</span></a> </span> </div>
						</div>
					</div>
					</td>
				</tr>
				</tfoot>
			</table>
	</div>
</div>
<?=isset($footer) ? $footer : ''?>